﻿using System;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Security;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.Workflow;
using MS.InformationManagement.Core.Support;

namespace MS.InformationManagement.Documents.ObjectDef.ItemReceivers.TemplatesReceiver
{
    /// <summary>
    /// List Item Events
    /// </summary>
    public class TemplatesReceiver : SPItemEventReceiver
    {
       /// <summary>
       /// An item was added.
       /// </summary>
       public override void ItemAdded(SPItemEventProperties properties)
       {
           base.ItemAdded(properties);
           //string user = properties.ListItem.Web.CurrentUser.LoginName.Split('\\')[1];
           //properties.ListItem.File.MoveTo(properties.WebUrl + "/" + user + "/" + properties.ListItem.File.Name);
       }


    }
}
